export default {
    inject: ['reload'],
    data() {
        return {
            masterInfo: null,
            dictionaryInfo: null
        }
    },
    computed: {
    },
    methods: {

        /**
         * 查询基础数据
         * @param type
         */
        getMasterData(param, config) {
            let self = this
            return new Promise(function (resolve, reject) {
                self.$api.getMasterData(param, config).then(function (res) {
                    self.masterInfo = res
                    resolve(res)
                }).catch(e => {
                    reject(e)
                })
            })
        }
    }
}
